package com.sjgl.esdn.service;

import com.sjgl.esdn.search.domain.MyFile;
import com.sjgl.esdn.search.domain.QueryResult;
import com.sjgl.esdn.search.domain.QueryResultTop;

import java.io.IOException;
import java.util.List;

/**
 * 这是搜索模块，不是博客模块
 * @author CSF
 */
public interface BlogService {
    public MyFile getMyFileById(String id) throws IOException;
    public QueryResult getMyFilesByRef(String query, Integer from, Integer size, Long userId) throws IOException;
    public QueryResult getMyFilesByDownload(String query, Integer from, Integer size, Long userId) throws IOException;
    public QueryResult getMyFilesByTime(String query, Integer from, Integer size, Long userId) throws IOException;
    public QueryResultTop getMyFilesByTop(Integer from, Integer size, Long userId) throws IOException;
    public QueryResult getMyFilesMoreLikeThis(String query, Integer from, Integer size, Long userId) throws IOException;
    public List<String> getSuggestion(String text) throws IOException;
}
